home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 12
/
Cream of the Crop 12 (Part II)
/
Cream of the Crop 12 (Part II).iso
/
BBS
/
EZY120_1.ZIP
/
STRUCT.ARJ
/
CLIB.ARJ
/
DATE8.CPP
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1996-03-09
|
389 b
|
14 lines
#include <ezylib.h>
void Long2Date(long Date, word &Year, word &Month, word &Day,
word &Hour, word &Min, word &Sec)
{
Sec = (word)((Date & 31) << 1);
Min = (word)((Date >> 5) & 63);
Hour = (word)((Date >> 11) & 31);
Day = (word)((Date >> 16) & 31);
Month = (word)((Date >> 21) & 15);
Year = (word)(((Date >> 25) & 127) + 1980);
}